package com.bomberdroid.ui;

import com.bomberdroid.R;

import android.app.Activity;
import android.os.Bundle;

/**
 * 
 * @author Jerome This class calls a GamePanel which extends SurfaceView
 * 
 */
public class GameView extends Activity {
	
	private GamePanel gamePanel;
	
	@Override public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.gamePanel = new GamePanel(this, R.raw.sat_4p, true);
		setContentView(this.gamePanel);
	}
	
	@Override protected void onDestroy() {
		try {
			this.gamePanel.surfaceDestroyed(this.gamePanel.getHolder());
			this.gamePanel = null;
		} catch (Exception e) {e.printStackTrace();}
		super.onDestroy();
	}

}
